import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.ui.Messages;
import org.jetbrains.annotations.NotNull;

/**
 * Created by jiao on 16/4/19.
 */
public class MGComponent implements ApplicationComponent {
    public MGComponent() {
    }

    @Override
    public void initComponent() {
        // TODO: insert component initialization logic here
    }

    @Override
    public void disposeComponent() {
        // TODO: insert component disposal logic here
    }

    public void speak() {
        Messages.showMessageDialog("弹窗信息展示!", "弹窗弹起来", Messages.getInformationIcon());
    }

    @Override
    @NotNull
    public String getComponentName() {
        return "MGComponent";
    }

}
